/*
 * Copyright 2009 Johnson Consulting Services
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * 
 */
package com.johnsoncs.gwt.widgets.samples.server.db;

import org.apache.empire.xml.XMLConfiguration;

/**
 * @author wilj
 *
 */
public class MockConfig extends XMLConfiguration {

	private String databaseProvider = "derby";

	private String jdbcClass = "org.apache.derby.jdbc.EmbeddedDriver";

	private String jdbcURL = "jdbc:derby:memory:GwtSamples;create=true";

	private String jdbcUser = "gwtsamples";

	private String jdbcPwd = "gwts4mpl3s";

	private String schemaName = "GWTSAMPLES";

	public String getDatabaseProvider() {
		return databaseProvider;
	}

	public String getJdbcClass() {
		return jdbcClass;
	}

	public String getJdbcPwd() {
		return jdbcPwd;
	}

	public String getJdbcURL() {
		return jdbcURL;
	}

	public String getJdbcUser() {
		return jdbcUser;
	}

	public String getSchemaName() {
		return schemaName;
	}

	public boolean init(final String filename) {
		// don't bother trying to read from an xml file
		return true;
	}

	public void setDatabaseProvider(final String databaseProvider) {
		this.databaseProvider = databaseProvider;
	}

	public void setJdbcClass(final String jdbcClass) {
		this.jdbcClass = jdbcClass;
	}

	public void setJdbcPwd(final String jdbcPwd) {
		this.jdbcPwd = jdbcPwd;
	}

	public void setJdbcURL(final String jdbcURL) {
		this.jdbcURL = jdbcURL;
	}

	public void setJdbcUser(final String jdbcUser) {
		this.jdbcUser = jdbcUser;
	}

	public void setSchemaName(final String schemaName) {
		this.schemaName = schemaName;
	}
}
